package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookshelfInfoDao;
import io.wdb.modules.generator.generator.entity.BookshelfInfoEntity;
import io.wdb.modules.generator.generator.service.BookshelfInfoService;



@Service("bookshelfInfoService")
public class BookshelfInfoServiceImpl implements BookshelfInfoService {
	@Autowired
	private BookshelfInfoDao bookshelfInfoDao;
	
	@Override
	public BookshelfInfoEntity queryObject(String code){
		return bookshelfInfoDao.queryObject(code);
	}
	
	@Override
	public List<BookshelfInfoEntity> queryList(Map<String, Object> map){
		return bookshelfInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookshelfInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(BookshelfInfoEntity bookshelfInfo){
		bookshelfInfoDao.save(bookshelfInfo);
	}
	
	@Override
	public void update(BookshelfInfoEntity bookshelfInfo){
		bookshelfInfoDao.update(bookshelfInfo);
	}
	
	@Override
	public void delete(String code){
		bookshelfInfoDao.delete(code);
	}
	
	@Override
	public void deleteBatch(String[] codes){
		bookshelfInfoDao.deleteBatch(codes);
	}
	
}
